<!DOCTYPE html>
<html>
<head>
	<title>suipian</title>
</head>
<body>
	<input type="button" value="提交" id="btn1">
	<ul id="ul1">
	</ul>
	<script>
		window.onload = function(){

			var oBtn = document.getElementById("btn1")
			var oUl = document.getElementById("ul1")

			oBtn.onclick=function(){
				var startT = new Date().getTime()
				var i = 0

				for(i=0;i<10000;i++){
					var oLi = document.createElement("li")
					oUl.appendChild(oLi)
				}
				var endT = new Date().getTime()
				alert(endT - startT)
			}
		}

	</script>

</body>
</html>